import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus';

import 'element-plus/dist/index.css'
import router from '@/router'
import "@/styles/index.scss"
import "@/styles/global.scss"
import "@/styles/ruoyi.scss"
import './permission'
import installElementPlus from './plugins/element'
import store from './store'
// 导入 svgIcon
//todo 全局挂载组件失败
import installIcons from '@/icons'
import installFilter from '@/filter/index'

import print from 'vue3-print-nb'

import i18n from "@/i18n/index"

import MessagePlugin from './plugins/message';



import permission from "@/directives/permission"
const app = createApp(App).use(ElementPlus).use(router).use(store)
  .use(i18n).use(installIcons).use(print).use(installFilter).use(MessagePlugin)

app.directive("permission", permission).mount("#app")


